package com.code2roc.jarmanage.depoly;

import com.code2roc.jarmanage.util.CMDUtil;
import com.code2roc.jarmanage.util.EnviromentUtil;
import com.code2roc.jarmanage.util.StringUtil;

public class DepolyServiceFactory {

    public DepolyService CreateDeployService() {
        DepolyService depolyService = null;
        String platform = EnviromentUtil.getDepolyPlaform();
        if(platform.equals(DepolyPlatform.Windows)){
            depolyService = new WindowsDepolyService();
        }else {
            depolyService = new LinuxDepolyService();
        }
        return depolyService;
    }

}
